{% extends "blog/base_blog.html" %}

{% block content %}

{% load comments.comments %}
<h1>Posts con el tag <[{{ otros.tag }}]</h1>
<br />
{% for item in lista %}
	
		{% get_free_comment_count for blog.post item.content_object.id as comment_count %}
		<a href="{{ post.get_absolute_url }}"><h2>{{ item.content_object.titulo }}</h2></a>
        <strong>{{ item.content_object.descripcion }}</strong>
        
		<p class="comments align-right">
			Posteado por <b> {{ item.content_object.blog.autor.username }} </b> el {{ item.content_object.fecha|date:"j F, Y" }}
        	| {{ item.content_object.lecturas}} lecturas 
			| Comentarios: <a href="{{ item.content_object.get_absolute_url }}#comments">
			{{ comment_count }} comment{{ comment_count|pluralize }}</a>
			<br/>
			<strong>Tags:</strong>
	        {% for tag in item.content_object.tags.all %} 
    	    	<a href="/blog/tag/{{tag.slug}}" title="{{tag.slug}}">{{tag.slug}}</a> 
        	{% endfor %}
        	| <a href="{{ item.content_object.get_absolute_url }}">Leer mas...</a>
		</p>
{% endfor %}


{% if lista %}     
    {% include "comun/indice-paginator.html" %}
{% endif %}


{% endblock %}
